package com.hs.srm.admin.modules.harmfulsubstance.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.hs.srm.base.common.base.CloneableEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * (SvhcVendorItemEntity)高度关注物质供应商填写详情表实体类
 *
 * @author ych
 * @since 2020-03-12 09:11:25
 */

@Setter
@Getter
@ToString
@TableName("svhc_vendor_item")
public class SvhcVendorItemEntity implements Serializable, CloneableEntity<SvhcVendorItemEntity> {
    private static final long serialVersionUID = 316346273515478488L;

    public SvhcVendorItemEntity() {

    }

    public SvhcVendorItemEntity(String svhcHeadId, String svhcItemId, String svhcVendorHeadId, Integer contain, String ppm, String description) {
        this.svhcHeadId = svhcHeadId;
        this.svhcItemId = svhcItemId;
        this.svhcVendorHeadId = svhcVendorHeadId;
        this.contain = contain;
        this.ppm = ppm;
        this.description = description;
    }

    /**
     * 高度关注物质供应商填写详情表
     */
    @TableId(value = "pk_id", type = IdType.UUID)
    @TableField("pk_id")
    private String pkId;

    /**
     * 高度关注物质head表id
     */
    @TableField("svhc_head_id")
    private String svhcHeadId;

    /**
     * 高度关注物质item表id
     */
    @TableField("svhc_item_id")
    private String svhcItemId;

    /**
     * 高度关注物质item表id
     */
    @TableField("svhc_vendor_head_id")
    private String svhcVendorHeadId;

    /**
     * 是否含有关注物质：0，没有；1，有
     */
    @TableField("contain")
    private Integer contain;

    /**
     * 物质所含量
     */
    @TableField("ppm")
    private String ppm;

    /**
     * 用途描述
     */
    @TableField("description")
    private String description;

    @Override
    public SvhcVendorItemEntity clone() {
        try {
            return (SvhcVendorItemEntity) super.clone();
        } catch (CloneNotSupportedException ex) {
            ex.printStackTrace();
        }
        return null;
    }

}